package com.jiang.Servict;

import com.jiang.DAO.Userdao;
import com.jiang.pojo.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.jiang.Servict
 * @Description:
 * @Date 2022/6/2 10:05
 */
public class Userserviceimpl1  implements UserService{

    public Userdao getUserDao() {
        return userDao;
    }

    public void setUserDao(Userdao userDao) {
        this.userDao = userDao;
    }

    private Userdao userDao;
    public void registUser() {
            userDao.insertUser();
            System.out.println("======UserService接口的第一种实现类=============");
    }

    public List<User> findUserAll() {

        System.out.println("======UserServiceImpl1执行了findUserAll方法=======");

        return new ArrayList<User>();
    }

    public void insertUser(User user) {
        System.out.println("======UserServiceImpl1执行了insertUser方法=======");
    }



    public void updateUser(User user) {
        System.out.println("======UserServiceImpl1执行了updateUser方法=======");
    }



    public void deleteUser(Integer id) {
        System.out.println("======UserServiceImpl1执行了deleteUser方法=======");
        int i =1/0;
    }
}
